﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Commont.DBContexts;

namespace Traceability.Commont.Infrastructures.Interfaces
{
    public interface IBateRepository<T> where T : class
    {
        
        IQueryable<T>  GetAll();
        Task<int> Add(T entity);
        Task<int> AddRang(List<T> entities);
        Task<int> Update(T entity);
        Task<int> Delete(T entity);
    }
}
